package com.ffcc.fitness.merchant.pojo.vo;

import com.ffcc.fitness.merchant.pojo.entity.Merchant;
import lombok.Data;

@Data
public class MerchantInfo {
    private Long merchantId;
    private Long userId;
    private String name;
    private String license;//营业执照url
    private String description;//商家描述
    private String qrCode;//支付二维码url

    // 无参构造函数（MyBatis 需要）
    public MerchantInfo() {
    }

    // 构造函数，接受一个 Merchant 对象
    public MerchantInfo(Merchant merchant) {
        this.merchantId = merchant.getMerchantId();
        this.userId = merchant.getUserId();
        this.name = merchant.getName();
        this.license = merchant.getLicense();
        this.description = merchant.getDescription();
        this.qrCode = merchant.getQrCode();
    }
}
